package oakclub.entity;

import oakclub.global.Config;

public class XmppEntity extends BaseEntity
{
    private UserEntity user;
    private String username;
    private String password;

    public XmppEntity()
    {

    }

    public XmppEntity(String username)
    {
        this.username = username;
    }

    public XmppEntity(String username, String password)
    {
        this.username = username;
        this.password = password;
    }

    public UserEntity getUser()
    {
        return user;
    }

    public void setUser(UserEntity user)
    {
        this.user = user;
    }

    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getJabberId()
    {
        return this.username + '@' + Config.get("ejabberd.vhost");
    }
}
